package com.example.wordcardjavaproject.bean;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Word {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    private String word;

    private String kana;

    private String chinese;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long checkCount;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long rightCount;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;
}
